|
|
@@ -37,7 +37,7 @@ Huginn::Application.configure do
|
37
|
37
|
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
38
|
38
|
|
39
|
39
|
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
40
|
|
- config.force_ssl = true
|
|
40
|
+ config.force_ssl = ENV['FORCE_SSL'].present? && ENV['FORCE_SSL'] == 'true' ? true : false
|
41
|
41
|
|
42
|
42
|
# See everything in the log (default is :info)
|
43
|
43
|
# config.log_level = :debug
|
|
|
@@ -88,4 +88,4 @@ Huginn::Application.configure do
|
88
|
88
|
config.action_mailer.raise_delivery_errors = true
|
89
|
89
|
config.action_mailer.delivery_method = :smtp
|
90
|
90
|
# smtp_settings moved to config/initializers/action_mailer.rb
|
91
|
|
-end
|
|
91
|
+end
|